
import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { useAuthStore } from '@/stores/user';

const app = createApp(App)
app.use(createPinia())
app.use(ElementPlus)
app.use(router)

const authStore = useAuthStore();
authStore.restore(); // 恢复数据

app.mount('#app')
